//API : openContent(url)
var closebtn = '<button type="button" class="btn" onclick="oDialog.hide();">closeDialog</button>';

var oDialog = new jindo.m.Dialog({
	sPosition : "left",
	sEffectType : "slide-down",
	//nEffectDuration : 500,
	nFoggyOpacity : 0.3
});
oDialog.attach({
    beforeHide : function(e) {
    	oDialog.unuseEffect ( );
    },
    beforeShow : function(e) {
    	oDialog.useEffect ( );
     }
});
function openContent(url) {
	var aTemplate = [];
	aTemplate.push('<button type="button" class="dialog-close guioHeaderClose"><img src="assets/img/btn_search.gif" width="18" height="18" alt="닫기"></button>');
	aTemplate.push('<section class="content_sec">');
	aTemplate.push('<iframe id="content" src="'+ url
			+ '" style="width:100%;height:100%;"></iframe>');
	aTemplate.push('</section>');
	var sTemplate = aTemplate.join("");
	oDialog.setTemplate(sTemplate);
	oDialog.show();
}
function ocSearch(url) {
	var aTemplate = [];
	aTemplate.push(closebtn + '<section class="content_sec">');
	aTemplate.push('<script> location.replace("http://search.naver.com/search.naver?where=nexearch&query=wdwd&sm=top_hty&fbm=1&ie=utf8");');
	
	var sTemplate = aTemplate.join("");
	oDialog.setTemplate(sTemplate);
	oDialog.show();
}
